package generalObjects;

import java.io.Serializable;

/**
 * A container class that holds information about the group state. This includes
 * the multicast algorithm used by the group, the ordering algorithm and its
 * members. This object is sent in response to a group join request so that a
 * new member can properly configure his client.
 * 
 */
public class GroupInformation implements Serializable {

    private static final long serialVersionUID = -4478884138610255479L;

    private final GroupView gView;
    private final String ordering;
    private final String multicast;

    public GroupInformation(final GroupView gView, final String ordering,
            final String multicast) {
        this.ordering = ordering;
        this.multicast = multicast;
        this.gView = gView;
    }

    public GroupView getGroupView() {
        return gView;
    }

    public String getOrderingAlgorithm() {
        return ordering;
    }

    public String getMulticastAlgorithm() {
        return multicast;
    }
}
